JBoss Community Archive (Read Only)

RHQ 4.5

IntelliJ

Code Style

  1. Install the intellij plugin for eclipse code formatting: http://code.google.com/p/eclipse-code-formatter-intellij-plugin/wiki/HowTo

  2. Set the import order in the plugin to manual configuration with the following packages: java;javax;com;org;org.jboss;org.rhq

  3. Turn off intellij's import optimizer: Preferences > Editor --> Auto Import (uncheck the java settings)

  4. Preferences > Code Style --> Java --> Imports

    1. Check Use single class import

    2. Change Class count to use import with '*' to 99

    3. Change Names count to use static import with '*' to 99

  You may have to restart Intellij Idea at this point.

VM Options

Here's the idea.vmoptions file I use:

-Xss128K
-Xms250M
-Xmx500M
-XX:PermSize=100M
-XX:MaxPermSize=200M
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=60
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalPacing
-Dsun.awt.keepWorkingSetOnMinimize=true
-Didea.no.jdk.check=true

If you have lots of RAM, I'd set the max heap size even higher.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-12 12:54:37 UTC, last content change 2012-07-17 22:33:03 UTC.